package it.apiconsulting.wot.model;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="t_food_type")
public class FoodType implements Serializable{
	
	private static final long serialVersionUID = -8767337896773261247L;
	
    private Long id;
    private String nome;
    private String descrizione;
    private Timestamp createDate;

	@Id
	@GeneratedValue
	@Column(name="id")
	public Long getId() {
		return id;
	}
	
	@Column(name="nome")
	public String getNome() {
		return nome;
	}
	
	@Column(name="descrizione")
	public String getDescrizione() {
		return descrizione;
	}
	
	@Column(name="create_date")
	public Timestamp getCreateDate() {
		return createDate;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setNome(String nome) {
		this.nome = nome;
	}

	public void setDescrizione(String descrizione) {
		this.descrizione = descrizione;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}
		
}
